package com.xiaohe66.web.infrastructure.sec;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author xiaohe
 * @since 2023.07.12 14:47
 */
@ConfigurationProperties(prefix = "xiaohe66.autologin")
@ConditionalOnProperty(value = "xiaohe66.autologin.enable", havingValue = "true")
@Component
@Slf4j
@Data
public class SecAutoLoginConfig {

    private Boolean enable;
    private List<String> excludeUrl;

    public SecAutoLoginConfig() {
        log.info("init SecAutoLoginConfig");
    }
}
